package com.ruoyi.inspection.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.inspection.mapper.TPlaceMapper;
import com.ruoyi.inspection.domain.TPlace;
import com.ruoyi.inspection.service.ITPlaceService;

/**
 * 巡检Service业务层处理
 *
 * @author ruoyi
 * @date 2024-06-04
 */
@Service
public class TPlaceServiceImpl implements ITPlaceService {
    @Autowired
    private TPlaceMapper tPlaceMapper;

    /**
     * 查询巡检
     *
     * @param id 巡检主键
     * @return 巡检
     */
    @Override
    public TPlace selectTPlaceById(String id) {
        return tPlaceMapper.selectTPlaceById(id);
    }

    /**
     * 查询巡检列表
     *
     * @param tPlace 巡检
     * @return 巡检
     */
    @Override
    public List<TPlace> selectTPlaceList(TPlace tPlace) {
        return tPlaceMapper.selectTPlaceList(tPlace);
    }

    /**
     * 新增巡检
     *
     * @param tPlace 巡检
     * @return 结果
     */
    @Override
    public int insertTPlace(TPlace tPlace) {
        return tPlaceMapper.insertTPlace(tPlace);
    }

    /**
     * 修改巡检
     *
     * @param tPlace 巡检
     * @return 结果
     */
    @Override
    public int updateTPlace(TPlace tPlace) {
        return tPlaceMapper.updateTPlace(tPlace);
    }

    /**
     * 批量删除巡检
     *
     * @param ids 需要删除的巡检主键
     * @return 结果
     */
    @Override
    public int deleteTPlaceByIds(String[] ids) {
        return tPlaceMapper.deleteTPlaceByIds(ids);
    }

    /**
     * 删除巡检信息
     *
     * @param id 巡检主键
     * @return 结果
     */
    @Override
    public int deleteTPlaceById(String id) {
        return tPlaceMapper.deleteTPlaceById(id);
    }
}
